/**
 * 
 */
package com.naveejr.services;

import javax.faces.event.AjaxBehaviorEvent;

import com.naveejr.domain.UserEntity;

/**
 * @author rajeevan
 *
 */
public interface UserService {

	/*
	 * Create user - persist user to the database
	 * 
	 * @param userEnity
	 * 
	 * @return true if success
	 */
	boolean createUser(UserEntity user);

	/*
	 * Check user name availability
	 * 
	 * @param ajax event
	 * 
	 * @return true if success
	 */
	boolean checkAvailable(AjaxBehaviorEvent event);

}
